#pragma once

#include <iostream>
#include <string>

#define Info 1
#define Waring 2
#define Fatal 3


#define LOG(LEVEL, MESSAGE) log(#LEVEL, MESSAGE, __FILE__, __LINE__)

void log(const std::string& level, const std::string& message, const std::string& file, int line)
{
    
    std::cout << "[" << level << "]";
    std::cout << "[Message:" << message << "]";
    
    if(level == "Info") std::cout << std::endl;
    else std::cout << "[Where:" << file << ":" << line << "]" << std::endl; 
    
}